import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const patient: AppRouteRecordRaw = {
	path: '/patient',
	name: 'patient',
	component: DEFAULT_LAYOUT,
	meta: {
		locale: '病患管理',
		ignoreCache: true,
		requiresAuth: true,
		icon: 'icon-settings',
		order: 2,
		roles: 'system:system',
	},
	children: [
	{
			path: 'patient',
			name: 'patient',
			component: () =>
				import('@/views/user/patient.vue'),
			meta: {
				locale: '病患管理',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:patient',
				
			},
		},
		{
			path: 'waitList',
			name: 'waitList',
			component: () =>
				import('@/views/user/waitList.vue'),
			meta: {
				locale: '待分配病患',
				ignoreCache: true,
				requiresAuth: true,
				roles: 'sys:waitList',
				
			},
		},
	],
};

export default patient;